/**
 * @description 后台路由
 */
export const backstageRoutes = [
  {
    path: '/center',
    name: 'center',
    redirect: '/manage',
    component: () => import('@/views/backstage/center/center.vue'),
    children: [],
  },
]

/**
 * @description 侧边菜单路由
 */
export const menuRoutes = []

/**
 * @description 侧边菜单权限路由
 */
export const menuAuthRoutes = [
  {
    path: '/manage',
    name: 'manage',
    redirect: '/manage/token',
    component: () => import('@/views/backstage/manage/manage.vue'),
    meta: {
      title: '管理员',
      icon: true,
    },
    children: [
      {
        path: '/manage/token',
        name: 'token',
        component: () => import('@/views/backstage/manage/token.vue'),
        meta: {
          title: 'token管理',
          icon: true,
        },
      },
      {
        path: '/manage/user',
        name: 'user',
        component: () => import('@/views/backstage/manage/user.vue'),
        meta: {
          title: '用户管理',
          icon: true,
        },
      },
    ],
  },
]

/**
 * @description 其他路由
 */
export const exceptionRoutes = [
  {
    path: '/redirect',
    name: 'redirect',
    component: () => import('@/views/exception/redirect.vue'),
    meta: {
      title: '跳转中...',
    },
  },
  {
    path: '/:path(.*)*',
    name: '404',
    component: () => import('@/views/exception/404.vue'),
    meta: {
      title: '您访问的页面不存在...',
    },
  },
]
